﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace JsonTest1.CControl
{
    public partial class Spinner : UserControl
    {


        public void setResource(IEnumerable<People> rDictionary)
        {
            this.spinner_list.ItemsSource = rDictionary;
            this.spinner_list.ApplyTemplate();
        }

        public void setTitle(string title)
        {
            if (title == null)
            {
                comboxTitle.Visibility = Visibility.Collapsed;
            }
            else
            {
                comboxTitle.Text = title;
            }
            
        }

        public Spinner()
        {
            InitializeComponent();
        }

        private void spinner_list_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}
